<template>
  <div class="todo">
    <input type="text" v-model="mask" />
    <button @click="handleAdd">添加</button>
    <ul>
      <li v-for="(item, index) in maskList" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      mask: '',
      maskList: []
    }
  },
  methods: {
    handleAdd() {
      this.maskList.push(this.mask)
      this.mask = ''
    }
  }
}
</script>
